<template>
  <div ref="charts" class="charts"></div>
</template>

<script>
import * as echarts from '_echarts@5.4.1@echarts'

export default {
  name: 'BarCharts',
  mounted() {
    let lineCharts = echarts.init(this.$refs.charts)
    lineCharts.setOption({
      xAxis: {
        show: false,
        type: 'category'
      },
      yAxis: {
        show: false
      },
      series: [{
        type: 'bar',
        data: [1322, 213, 212, 3, 12, 312, 3, 1]
      }],
      tooltip: {}
    })
  }
}
</script>

<style scoped>
.charts {
  width: 100%;
  height: 100%;
}
</style>
